import request from '@/utils/request'

export function getDetailList(page, limit, searchObj) {
  return request({
    url: `/sth/ranking/getDetailList`,
    method: 'get'
  })
}

export function saveData(ranking) {
  return request({
    url: `/sth/ranking/save`,
    method: 'post',
    data: ranking
  })
}

export function removeById(id) {
  return request({
    url: `/sth/ranking/remove/${id}`,
    method: 'delete'
  })
}

export function getList() {
  return request({
    url: `/sth/ranking/getList`,
    method: 'get'
  })
}

export function savepeopleData(people) {
  return request({
    url: `/sth/people/save`,
    method: 'post',
    data: people
  })
}

export function getPeopleList() {
  return request({
    url: `/sth/people/getList`,
    method: 'get'
  })
}

export function removePeopleById(id) {
  return request({
    url: `/sth/people/remove/${id}`,
    method: 'delete'
  })
}
